from abc import abstractmethod


# 迭代器接口
class Iterator(object):
    @abstractmethod
    def has_next(self):
        pass

    @abstractmethod
    def next(self):
        pass
